package com.zjp.model.comment;

import java.util.Date;

/**
 * 评论表
 * @author Administrator
 *
 */
public class Mommentinfo {
	/**
	 * pk id
	 */
	private long id;
	/**
	 * 只能纯文本描述评论（每个用户成功购买过当前商品只能评论一次）
	 */
	private String commtext;
	/**
	 * 商品表t_product主键（获取商品名称，图片，商品tips）
	 */
	private long productId;
	/**
	 * 店铺表t_shop主键（获取店铺名称，图片，店铺tips）
	 */
	private long shopId;
	/**
	 * 用户表t_user主键（收货人信息）
	 */
	private long userId;
	/**
	 * 用户表t_user主键（店铺管理人员信息）
	 */
	private long shopUserId;
	/**
	 * 用户表t_user主键（系统管理人员信息）
	 */
	private long sysUserId;
	/**
	 * 1开审核中；2.公开
	 */
	private int status;
	/**
	 * 本字段为空，说明是第一条评论，有值就是针对第一条评论的回复。目前有且只允许回复一次。
	 */
	private long parentsId;
	/**
	 * 创建时间
	 */
	private Date created;
	/**
	 * 修改时间
	 */
	private Date modifyd;
	/**
	 * 删除时间
	 */
	private Date deleted;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getCommtext() {
		return commtext;
	}
	public void setCommtext(String commtext) {
		this.commtext = commtext;
	}
	public long getProductId() {
		return productId;
	}
	public void setProductId(long productId) {
		this.productId = productId;
	}
	public long getShopId() {
		return shopId;
	}
	public void setShopId(long shopId) {
		this.shopId = shopId;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getShopUserId() {
		return shopUserId;
	}
	public void setShopUserId(long shopUserId) {
		this.shopUserId = shopUserId;
	}
	public long getSysUserId() {
		return sysUserId;
	}
	public void setSysUserId(long sysUserId) {
		this.sysUserId = sysUserId;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public long getParentsId() {
		return parentsId;
	}
	public void setParentsId(long parentsId) {
		this.parentsId = parentsId;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Date getModifyd() {
		return modifyd;
	}
	public void setModifyd(Date modifyd) {
		this.modifyd = modifyd;
	}
	public Date getDeleted() {
		return deleted;
	}
	public void setDeleted(Date deleted) {
		this.deleted = deleted;
	}
	public Mommentinfo(long id, String commtext, long productId, long shopId,
			long userId, long shopUserId, long sysUserId, int status,
			long parentsId, Date created, Date modifyd, Date deleted) {
		super();
		this.id = id;
		this.commtext = commtext;
		this.productId = productId;
		this.shopId = shopId;
		this.userId = userId;
		this.shopUserId = shopUserId;
		this.sysUserId = sysUserId;
		this.status = status;
		this.parentsId = parentsId;
		this.created = created;
		this.modifyd = modifyd;
		this.deleted = deleted;
	}
	public Mommentinfo() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	

}
